package com.oauth.global.client.beans;

import com.google.gwt.user.client.rpc.IsSerializable;

public class AppInfoBean implements IsSerializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2017885629376945727L;
	private String mImageUrl;
	private long mId;
	private String mName;

	/**
	 * Note: Don't delete default constructor.It is here to avoid serialization
	 * exception.
	 */
	public AppInfoBean() {

	}

	public AppInfoBean(String pImageUrl, long pId, String pName) {
		super();
		mImageUrl = pImageUrl;
		mId = pId;
		mName = pName;
	}

	/**
	 * @return the id
	 */
	public long getId() {
		return mId;
	}

	/**
	 * @return the imageUrl
	 */
	public String getImageUrl() {
		return mImageUrl;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return mName;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("AppInfoBean [mId=");
		builder.append(mId);
		builder.append(", mImageUrl=");
		builder.append(mImageUrl);
		builder.append(", mName=");
		builder.append(mName);
		builder.append("]");
		return builder.toString();
	}

}
